package ldk.easytouch.utils;

import android.content.Context;
import android.os.Vibrator;
import android.support.annotation.NonNull;

/**
 * Created by ldkxingzhe on 2016/9/19.
 */
public class OSUtil {
    @SuppressWarnings("unused")
    private static final String TAG = "OSUtil";
    private OSUtil(){}

    public static void vibrator(@NonNull Context context){
        vibrator(context, 50);
    }

    public static void vibrator(@NonNull Context context, int timeMillSeconds){
        Vibrator vibrator = (Vibrator) context.getSystemService(Context.VIBRATOR_SERVICE);
        vibrator.vibrate(timeMillSeconds);
    }
}
